package com.sammy.appmonitor.contentprovider;

import android.net.Uri;
import android.provider.BaseColumns;

public class MyContract {

	public static final String CONTENT_AUTHORITY = "com.sammy.appmonitor.contentprovider";
	private static final Uri BASE_CONTENT_URI = Uri.parse("content://" + CONTENT_AUTHORITY);

	private static final String PATH_MESSAGES_OUT = "messagesout";

	interface MessagesOutColums {		
		String MESSAGE = "message";
		String RECORD_TIME = "recordtime";
	}

	public static class MessagesOut implements BaseColumns, MessagesOutColums {

		public static final Uri CONTENT_URI = BASE_CONTENT_URI.buildUpon().appendPath(PATH_MESSAGES_OUT).build();

		public static final String CONTENT_TYPE = "vnd.android.cursor.dir/vnd.sammy.appmonitor.messagesout";
		public static final String CONTENT_ITEM_TYPE = "vnd.android.cursor.item/vnd.sammy.appmonitor.messagesout";

		public static Uri buildMsgOutUri(Long id) {
			return CONTENT_URI.buildUpon().appendPath("" + id).build();
		}

	}

}
